﻿using IntelligentAgriculture.Domain.Entity;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace IntelligentAgriculture.Domain.Interface
{
    /// <summary>
    /// 称重仓储接口
    /// </summary>
    public interface IBreedingWeighRepository
    {

        /// <summary>
        /// 获取称重数据
        /// </summary>
        /// <returns></returns>
        Task<IQueryable<Breedingweigh>> BreedingWeigh();
        /// <summary>
        /// 获取称重数据列表
        /// </summary>
        /// <param name="startDate"></param>
        /// <param name="endDate"></param>
        /// <param name="earTag"></param>
        /// <param name="weighCategory"></param>
        /// <param name="variety"></param>
        /// <param name="sheepRescissionSex"></param>
        /// <param name="startAge"></param>
        /// <param name="endAge"></param>
        /// <returns></returns>
        Task<List<Breedingweigh>> BreedingWeighList(string startDate, string endDate, string earTag,int weighCategory,int variety,bool sheepRescissionSex,int startAge,int endAge);

        /// <summary>
        /// 删除称重数据
        /// </summary>
        /// <param name="breedingID"></param>
        /// <returns></returns>
        Task<int> Delete(int breedingID);
        /// <summary>
        /// 添加称重数据
        /// </summary>
        /// <param name="breedingweigh"></param>
        /// <returns></returns>
        Task<int> Add(Breedingweigh breedingweigh);

        /// <summary>
        /// 更新称重数据
        /// </summary>
        /// <param name="breedingweigh"></param>
        /// <returns></returns>
        Task<int> Update(Breedingweigh breedingweigh);


    }





}
